Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Files > Navigation Services >

Programming With Navigation Services 1.1


Save Changes Request Constants

Your application requests a Save Changes alert box by specifying one of the following constants, defined by the NavAskSaveChangesAction data type, in the action parameter of the function NavAskSaveChanges .

enum {
    kNavSaveChangesClosingDocument      = 1,
    kNavSaveChangesQuittingApplication  = 2,
    kNavSaveChangesOther                = 0
};
typedef UInt32  NavAskSaveChangesAction;

Constant descriptions

kNavSaveChangesClosingDocument
Requests a Save Changes alert box that asks the user whether to save changes when closing a document.
kNavSaveChangesQuittingApplication
Requests a Save Changes alert box that asks the user whether to save changes when quitting your application.
kNavSaveChangesOther
Requests a Save Changes alert box that asks the user whether to save changes at some time other than closing or quitting. This is useful when your application prompts the user to save documents at timed intervals, for example.

© 1998 Apple Computer, Inc. – (Last Updated 23 Nov 98)

Previous | Back Up One Level | Next |